import { Controller, Get, Post, Query, Body } from '@nestjs/common';
import { Userervice } from '../services/user.service';

@Controller('api')
export class UserController {
  constructor(private readonly Userervice: Userervice) {}

  @Get('userList')
  async userList() {
    return await this.Userervice.findUserList();
  }
  @Post('saveUser')
  async saveUser(@Body() request: any) {
    return await this.Userervice.saveUser(request);
  }
}
